package cn.com.commons.utils;

import org.apache.commons.lang3.math.NumberUtils;

public class NumberUtil extends NumberUtils {

	/**
	 * 判断数字如果为空或者为0
	 * 
	 * @return
	 */
	public static boolean isPositive(Byte number) {
		return (number == null ? false : number > 0);
	}

	/**
	 * 判断数字如果为空或者为0
	 * 
	 * @return
	 */
	public static boolean isPositive(Short number) {
		return (number == null ? false : number > 0);
	}

	/**
	 * 判断数字如果为空或者为0
	 * 
	 * @return
	 */
	public static boolean isPositive(Integer number) {
		return (number == null ? false : number > 0);
	}

	/**
	 * 判断数字如果为空或者为0
	 * 
	 * @return
	 */
	public static boolean isPositive(Float number) {
		return (number == null ? false : number > 0);
	}

	/**
	 * 判断数字如果为空或者为0
	 * 
	 * @return
	 */
	public static boolean isPositive(Long number) {
		return (number == null ? false : number > 0);
	}

	/**
	 * 判断数字如果为空或者为0
	 * 
	 * @return
	 */
	public static boolean isPositive(Double number) {
		return (number == null ? false : number > 0);
	}

}
